LeafBlock = class(Block)

function LeafBlock:init(id,tex,destoryTime)
    Block.init(self,id,tex,destoryTime)
    -- self.opacityBlock = true
end

function LeafBlock:tick(x,y,z)
    if world:getBrightness(x,y,z) < 7 then
        world:setBlock(x,y,z,Block.air.id)
    end
end

function LeafBlock:getDroppedItem()
    return nil
end